import {
	createRouter,
	createWebHashHistory
} from 'vue-router'
import Login from '../components/Login.vue'
import Index from '../components/Index.vue'
import XiaoQu from '../components/XiaoQu.vue'
import Park from '../components/Park.vue'
import Signup from "../components/Signup.vue"
const routes = [{
		path: '/Login',
		name: 'Login',
		component: Login
	},
	{
		path: '/Index',
		name: 'Index',
		component: Index,
		children: [{
			path: '/XiaoQu',
			name: 'XiaoQu',
			component: XiaoQu
		}, {
			path: '/Park',
			name: 'Park',
			component: Park
		},
		]
	},
	{
		path:'/Signup',
		name:'Signup',
		component:Signup
		}
];
const router = createRouter({
	history: createWebHashHistory(),
	routes
})
export default router